package com.oromwin.repos.data;


import java.io.File;

import com.oromwin.repos.common.Common;

public class MediaTable extends AbstractReposTable {
    private String VolumeId = Common.NULL;
    private String MediaId = Common.NULL;
    private File MediaPath = new File(Common.NULL);
    private Long MediaMaxBytes = new Long(0L);
    private Long MediaUsedBytes = new Long(0L);
    private Integer MediaFileCount = new Integer(0);
    private Boolean MediaStatus = Boolean.FALSE;
    private String MediaCreateDate = Common.NULL;
    private String MediaUpdateDate = Common.NULL;
    public MediaTable() {
    }
    public MediaTable(String volumeId, String mediaId, File mediaPath, Long mediaMaxBytes, Long mediaUsedBytes, Integer mediaFileCount, Boolean mediaStatus, String createDate, String updateDate) {
        VolumeId = volumeId;
        MediaId = mediaId;
        MediaPath = mediaPath;
        MediaMaxBytes = mediaMaxBytes;
        MediaUsedBytes = mediaUsedBytes;
        MediaFileCount = mediaFileCount;
        MediaStatus = mediaStatus;
        MediaCreateDate = createDate;
        MediaUpdateDate = updateDate;
    }
    public String getVolumeId() {
        return VolumeId;
    }
    public void setVolumeId(String volumeId) {
        this.VolumeId = volumeId;
    }
    public String getMediaId() {
        return MediaId;
    }
    public void setMediaId(String mediaId) {
        this.MediaId = mediaId;
    }
    public File getMediaPath() {
        return MediaPath;
    }
    public void setMediaPath(File mediaPath) {
        this.MediaPath = mediaPath;
    }
    public Long getMediaMaxBytes() {
        return MediaMaxBytes;
    }
    public void setMediaMaxBytes(Long mediaMaxBytes) {
        this.MediaMaxBytes = mediaMaxBytes;
    }
    public Long getMediaUsedBytes() {
        return MediaUsedBytes;
    }
    public void setMediaUsedBytes(Long mediaUsedBytes) {
        this.MediaUsedBytes = mediaUsedBytes;
    }
    public Integer getMediaFileCount() {
        return MediaFileCount;
    }
    public void setMediaFileCount(Integer mediaFileCount) {
        this.MediaFileCount = mediaFileCount;
    }
    public Boolean getMediaStatus() {
        return MediaStatus;
    }
    public void setMediaStatus(Boolean mediaStatus) {
        this.MediaStatus = mediaStatus;
    }
    public String getMediaCreateDate() {
        return MediaCreateDate;
    }
    public void setMediaCreateDate(String createDate) {
        this.MediaCreateDate = createDate;
    }
    public String getMediaUpdateDate() {
        return MediaUpdateDate;
    }
    public void setMediaUpdateDate(String updateDate) {
        this.MediaUpdateDate = updateDate;
    }
    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append("VolumeId/\t"+VolumeId+"\n");
        sb.append("MediaId/\t"+MediaId+"\n");
        sb.append("MediaPath/\t"+MediaPath+"\n");
        sb.append("MediaMaxBytes/\t"+MediaMaxBytes+"\n");
        sb.append("MediaUsedBytes/\t"+MediaUsedBytes+"\n");
        sb.append("MediaFreeBytes/\t"+getMediaFreeBytes()+"\n");
        sb.append("MediaFileCount/\t"+MediaFileCount+"\n");
        sb.append("MediaStatus/\t"+MediaStatus.toString()+"\n");
        sb.append("MediaCreateDate/\t"+MediaCreateDate.toString()+"\n");
        sb.append("MediaUpdateDate/\t"+MediaUpdateDate.toString()+"\n");
        return sb.toString();
    }
    public Long getMediaFreeBytes() {
        return new Long(MediaMaxBytes.longValue() - MediaUsedBytes.longValue());
    }
}
